package com.ruoyi.mp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 救援任务对象 rescue
 * 
 * @author mp
 * @date 2025-05-10
 */
public class Rescue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 救援类型id */
    @Excel(name = "救援类型id")
    private Integer rescueTypeId;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Integer carId;

    /** 商家id */
    @Excel(name = "商家id")
    private Integer merchantId;

    /** 救援位置 */
    @Excel(name = "救援位置")
    private String rescuePosition;

    /** 结束位置 */
    @Excel(name = "结束位置")
    private String endPosition;

    /** 救援时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "救援时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rescueTime;

    /** 用户评分（1-5） */
    @Excel(name = "用户评分", readConverterExp = "1=-5")
    private Integer score;

    /** 删除状态(默认0，删除1) */
    private Integer del;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setRescueTypeId(Integer rescueTypeId) 
    {
        this.rescueTypeId = rescueTypeId;
    }

    public Integer getRescueTypeId() 
    {
        return rescueTypeId;
    }

    public void setCarId(Integer carId) 
    {
        this.carId = carId;
    }

    public Integer getCarId() 
    {
        return carId;
    }

    public void setMerchantId(Integer merchantId) 
    {
        this.merchantId = merchantId;
    }

    public Integer getMerchantId() 
    {
        return merchantId;
    }

    public void setRescuePosition(String rescuePosition) 
    {
        this.rescuePosition = rescuePosition;
    }

    public String getRescuePosition() 
    {
        return rescuePosition;
    }

    public void setEndPosition(String endPosition) 
    {
        this.endPosition = endPosition;
    }

    public String getEndPosition() 
    {
        return endPosition;
    }

    public void setRescueTime(Date rescueTime) 
    {
        this.rescueTime = rescueTime;
    }

    public Date getRescueTime() 
    {
        return rescueTime;
    }

    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("rescueTypeId", getRescueTypeId())
            .append("carId", getCarId())
            .append("merchantId", getMerchantId())
            .append("rescuePosition", getRescuePosition())
            .append("endPosition", getEndPosition())
            .append("rescueTime", getRescueTime())
            .append("score", getScore())
            .append("del", getDel())
            .toString();
    }
}
